package com.snake.excel2java.excel.register;

import java.util.Map;

import com.snake.excel2java.excel.IExcelLoader;

import com.snake.excel2java.excel.common.ext.file.*;

import com.snake.excel2java.excel.global.ext.GlobalExt;

import org.springframework.stereotype.Component;
import org.springframework.beans.factory.annotation.Autowired;

@Component
public class ExcelRegister {

	@Autowired
	GlobalExt globalExt;
	@Autowired
	DropExt dropExt;
	@Autowired
	GroupExt groupExt;


	public void register(Map<String, IExcelLoader> loaderMap) {

		loaderMap.put(globalExt.getFileName(), globalExt);
		loaderMap.put(dropExt.getFileName(), dropExt);
		loaderMap.put(groupExt.getFileName(), groupExt);


	}

}